package com.chaodev.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/6/9 11:20
 **/
public class LearningPark implements Serializable {

    private static final long serialVersionUID = 6339354060353662985L;
    @ApiModelProperty(value = "主键自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "状态")
    private Integer state;

    @ApiModelProperty(value = "发表人")
    private String sendUser;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(locale="zh",timezone="GMT+8",pattern="yyyy-MM-dd")
    private Date cTime;

    @ApiModelProperty(value = "创建人")
    private String cUser;

    @ApiModelProperty(value = "更新时间")
    private Date updtTime;

    @ApiModelProperty(value = "更新人")
    private String updtr;

    @ApiModelProperty(value = "发送部门code")
    private String sendOrgCode;

    @ApiModelProperty(value = "发送部门名称")
    private String sendOrgName;

    @ApiModelProperty(value = "访问量")
    private Integer visitNum;

    @ApiModelProperty(value = "业务类型")
    private String bizType;

    @ApiModelProperty(value = "附件")
    private List<Att> atts;

    @ApiModelProperty("封面")
    private String coverImg;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getSendUser() {
        return sendUser;
    }

    public void setSendUser(String sendUser) {
        this.sendUser = sendUser;
    }
    public Date getcTime() {
        return cTime;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }
    public String getcUser() {
        return cUser;
    }

    public void setcUser(String cUser) {
        this.cUser = cUser;
    }
    public Date getUpdtTime() {
        return updtTime;
    }

    public void setUpdtTime(Date updtTime) {
        this.updtTime = updtTime;
    }
    public String getUpdtr() {
        return updtr;
    }

    public void setUpdtr(String updtr) {
        this.updtr = updtr;
    }
    public String getSendOrgCode() {
        return sendOrgCode;
    }

    public void setSendOrgCode(String sendOrgCode) {
        this.sendOrgCode = sendOrgCode;
    }
    public String getSendOrgName() {
        return sendOrgName;
    }

    public void setSendOrgName(String sendOrgName) {
        this.sendOrgName = sendOrgName;
    }
    public Integer getVisitNum() {
        return visitNum;
    }

    public void setVisitNum(Integer visitNum) {
        this.visitNum = visitNum;
    }
    public String getBizType() {
        return bizType;
    }

    public void setBizType(String bizType) {
        this.bizType = bizType;
    }

    public List<Att> getAtts() {
        return atts;
    }

    public void setAtts(List<Att> atts) {
        this.atts = atts;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    @Override
    public String toString() {
        return "TbLearningPark{" +
                "id=" + id +
                ", title=" + title +
                ", content=" + content +
                ", state=" + state +
                ", sendUser=" + sendUser +
                ", cTime=" + cTime +
                ", cUser=" + cUser +
                ", updtTime=" + updtTime +
                ", updtr=" + updtr +
                ", sendOrgCode=" + sendOrgCode +
                ", sendOrgName=" + sendOrgName +
                ", visitNum=" + visitNum +
                ", bizType=" + bizType +
                "}";
    }
}
